.class Lcom/xingbook/park/activity/au;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/OpenBookAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/au;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v4, -0x1

    const v1, 0x7f0800c9

    iget-object v0, p0, Lcom/xingbook/park/activity/au;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/OpenBookAct;

    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    sget-object v1, Lcom/xingbook/ting/play/MusicService;->s:Lcom/xingbook/ting/play/MusicService;

    if-eqz v1, :cond_0

    new-instance v2, Landroid/content/Intent;

    const-string v3, "com.111.xingpark.ting.play.musicservice.action.STOP"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_0
    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/park/activity/FCViewAct;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_1

    const-string v2, "com.xingbook.park.FORCE_BOOKMARK"

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_1
    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0, v4}, Lcom/xingbook/park/activity/OpenBookAct;->setResult(I)V

    invoke-virtual {v0}, Lcom/xingbook/park/activity/OpenBookAct;->finish()V

    const v1, 0x7f040008

    const v2, 0x7f040009

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/park/activity/OpenBookAct;->overridePendingTransition(II)V

    goto :goto_0

    :pswitch_1
    iget v2, p1, Landroid/os/Message;->arg1:I

    packed-switch v2, :pswitch_data_1

    const v1, 0x7f08005d

    :goto_1
    :pswitch_2
    invoke-virtual {v0}, Lcom/xingbook/park/activity/OpenBookAct;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    const v1, 0x7f0800ca

    goto :goto_1

    :pswitch_4
    const v1, 0x7f0800cb

    goto :goto_1

    :pswitch_5
    const-string v1, "\u6ca1\u6709\u63d0\u4f9b\u661f\u5b9d\u4e66ID"

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_6
    const-string v1, "\u8fd9\u672c\u4e66\u5f53\u524d\u4e0d\u80fd\u6253\u5f00\uff01"

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_7
    const-string v1, "\u60a8\u8fd8\u6ca1\u6709\u8fd9\u672c\u4e66"

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_8
    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->b(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    invoke-virtual {v0, v4}, Lcom/xingbook/park/activity/OpenBookAct;->setResult(I)V

    invoke-virtual {v0}, Lcom/xingbook/park/activity/OpenBookAct;->finish()V

    goto :goto_0

    :pswitch_9
    const-string v1, "\u6ca1\u6709\u63d0\u4f9b\u8bfe\u7a0b\u56fe\u4e66\u4fe1\u606f"

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_5
        :pswitch_7
        :pswitch_6
        :pswitch_1
        :pswitch_8
        :pswitch_9
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x1
        :pswitch_2
        :pswitch_2
        :pswitch_2
        :pswitch_3
        :pswitch_2
        :pswitch_4
    .end packed-switch
.end method
